<?php
//Recuperation des variables
import_request_variables("gP","req_");

//CLE API : a28c1d712b24476dbbb070454c225f91
$URL = "http://picasaweb.google.com/data/feed/api/search?q=".$req_searchString."&start-index=1&max-results=50&psc=G&category=photo&alt=json";
$fp = fopen($URL, "rb");
$pageData = "";
while( !feof( $fp)){
	$pageData .= fgets($fp, 4096);
    }
echo("{picasaPhotos : " . $pageData . "}");
?>